﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Data.SqlClient;

namespace CVM.Data.Repositories
{
    public class CandidateRepository : Base.RepositoryBase
    {
        public CandidateRepository()
        {
            this.TableName = "Candidate";
        }

        #region Current Commands
        protected override string AddCommand(Entities.DataEntityBase entity)
        {
            var current = (Entities.CandidateData)entity;
            return "insert into Candidates values (" + current.FirstName + ")";
        }
        #endregion

        protected override Entities.DataEntityBase GetItem(System.Data.DataRow row)
        {
            return new Entities.CandidateData(row);
        }
    }
}
